/*
 * element.h
 *
 *  Created on: 09 Nis 2012
 *      Author: hframe
 */

#ifndef ELEMENT_H_
#define ELEMENT_H_

#include "surface.h"
#include "../drawing/point.h"

startnamespace( androidplus)
startnamespace(ui)

class element {
public:
	element();
	virtual ~element();
public:
	 void render_to(surface *srfc);
	element *child;

protected:
	virtual void render(surface *srfc)=0;
	element *parent;



};

endnamespace(ui)
endnamespace(androidplus)

#endif /* ELEMENT_H_ */
